package com.example.mapper;

import com.example.POJO.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ProductMapper {

    List<Product> getProductBySearch(Product product);

    @Select("select * from product where id=#{product_id}")
    Product getProductById(Integer product_id);
}
